package cn.com.vastbase.hibernate.sample.springmvc.business.dao.impl;

import cn.com.vastbase.hibernate.sample.springmvc.basic.impl.BaseDAOImpl;
import cn.com.vastbase.hibernate.sample.springmvc.business.dao.UserDao;
import cn.com.vastbase.hibernate.sample.springmvc.business.entity.User;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public class UserDaoImpl extends BaseDAOImpl implements UserDao {

    @SuppressWarnings("unchecked")
    @Override
    public List<User> list() {
        return (List<User>) find("from Person");
    }
}
